package com.js.interpreter.exceptions;

import com.js.interpreter.linenumber.LineInfo;

public class ParsingException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5592261827134726938L;
	public LineInfo line;

	public ParsingException(LineInfo line, String message) {
		super(message);
		this.line = line;
	}

	public ParsingException(LineInfo line) {
		super();
		this.line = line;
	}

	@Override
	public String toString() {
		return line + ":" + getMessage();
	}
}
